<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // if(score>90) {
        //     alert('真好')
        // }else {
        //     alert('加油')
        // }

        // score>90 ? alert('真好'):alert('加油')
        let score = +prompt('fenshu')
        switch (score) {
            case 90:
                alert('优秀')
                break;

            case 80:
                alert('良好')
                // break;
            case 70:
            alert('合格')
            break;
            default:
            alert('继续努力')

}
    </script>
    
</body>
</html>